/* eslint-disable no-console */
import * as RongIMLib from '@rongcloud/imlib-next'
import {  RONGYUN_APPKEY } from './config'

RongIMLib.init({ appkey: RONGYUN_APPKEY })

console.log('融云初始化=======>完成')

// 注册自定义消息类型
export const PinTuanMessage = RongIMLib.registerMessageType(
  'HY:PinTuan',
  true,
  true,
  [],
  false
)
export const HongBaoMessage = RongIMLib.registerMessageType(
  'HY:HongBao',
  true,
  true,
  [],
  false
)
export const ProductMessage = RongIMLib.registerMessageType(
  'HY:Product',
  true,
  true,
  [],
  false
)
export default RongIMLib
